package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrdersettingMapper {

   //添加预约设置
   void add(OrderSetting orderSetting);

   //更新预约设置
   void editNumberByOrderDate(OrderSetting orderSetting);

   //通过时间查询
   Long findCountByOrderDate(Date orderDate);

   //根据月份查询预约设置
   List<OrderSetting> getOrdersettingByMonth(Map<String, String> map);

   //根据预约日期查询预约设置信息
   OrderSetting findByOrderDate(Date orderDate);

   void editReservationsByOrderDate(OrderSetting orderSetting);

   /* ========================================================================================================== */

   /**
    * 1.根据条件更新预约设置
    *
    * @param orderSetting
    * @return
    */
   int updateByCondition(OrderSetting orderSetting);
}
